package javaCode.chapter07.extend;

public class ExtendsDetail {

    public static void main(String[] args) {
        System.out.println("===第一个对象===");
        Sub sub = new Sub(); //创建了子类对象 sub
        System.out.println("===第二个对象===");

        Sub sub2 = new Sub("jack");
        //sub.sayOk();
    }
}
